import { lazy } from 'react';
import { UserCircleIcon } from 'tdesign-icons-react';
import { IRouter } from '../index';

const result: IRouter[] = [
  {
    path: '/safety-config',
    meta: {
      title: '安全管理',
      Icon: UserCircleIcon,
    },
    children: [
      {
        path: 'users/index',
        Component: lazy(() => import('pages/Users')),
        meta: {
          title: '用户管理',
        },
      },
      {
        path: 'role/index',
        Component: lazy(() => import('pages/Role')),
        meta: {
          title: '角色管理',
        },
      },
      {
        path: 'permission/index',
        Component: lazy(() => import('pages/Permission')),
        meta: {
          title: '权限管理',
        },
      },
      {
        path: 'url-resource/index',
        Component: lazy(() => import('pages/UrlResource')),
        meta: {
          title: 'URL资源管理',
        },
      },
    ],
  },
];

export default result;
